<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>认识jquery</h1>
    <p>基本语法： $("选择器")：获取jquery对象。</p>
    <p>通过jquery对象，调用jquery内置的API方法，完成DOM节点操作。</p>
    <p>$和jQuery是一个意思。</p>
    <div class="div1">1</div>
    <div class="div1">2</div>
</body>
<script src="../jquery-3.6.0.min.js"></script>
<script>
    $(".div1").css({color:"#f00",backgroundColor: "#0ff"});
</script>
</html>